/*
 * Copyright (c) 2006-2018, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2018-11-06     SummerGift   first version
 * 2019-04-09     jhb
 */

#include <rtthread.h>
#include <rtdevice.h>
#include "iot_gpio.h"

int main(void)
{
    // rt_pin_mode(116, PIN_MODE_OUTPUT);
    // rt_pin_write(116, PIN_LOW);
    // rt_thread_delay(500);
    // rt_pin_write(116, PIN_HIGH);
    // rt_thread_delay(500);
    IoTGpioInit(116);
    IoTGpioSetDir(116, IOT_GPIO_DIR_OUT);
    IoTGpioSetOutputVal(116, IOT_GPIO_VALUE0);
    rt_thread_delay(500);
    IoTGpioSetOutputVal(116, IOT_GPIO_VALUE1);
    rt_thread_delay(500);


    return RT_EOK;
}
